import config from "@/config"
import http from "@/utils/request"

export default {
	expressCompany: {
		list: {
			url: `${config.API_URL}company/index`,
			name: "列表",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		create: {
			url: `${config.API_URL}company/create`,
			name: "添加",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
		update: {
			url: `${config.API_URL}company/update`,
			name: "修改",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
		delete: {
			url: `${config.API_URL}company/delete`,
			name: "删除",
			post: async function(data){
				return await http.post(this.url, data, {
				});
			}
		},
		detail: {
			url: `${config.API_URL}company/detail`,
			name: "详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
	},
}
